package com.swj.cloud.simple.controller;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by wenjie.shi on 2016/8/2.
 */
@Controller
@SpringBootApplication
public class SimpleController {


    @RequestMapping("/")
    @ResponseBody
    String index(){
        return  "Hello world spring cloud";
    }

    public static void main(String[] args){
        SpringApplication.run(SimpleController.class, args);
    }
}
